#@layout()

#define script()
<script>

    function doDel(id) {
        ajaxGet("/admin/securityinformation/jpress_addon_securityinformation_srd/doDel/" + id);
    }

    $("#batchDel").click(function () {
        var ids = getSelectedIds();
        if (ids == "") {
            alert('您未选择任何条目');
            return
        }
        ajaxGet("/admin/securityinformation/jpress_addon_securityinformation_srd/doDelByIds?ids=" + ids);
    })

    function reset(){
        window.location.href = window.location.pathname;
    }

</script>
#end

#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            管理
            <small>Items</small>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">

                    <form class="form-horizontal actionPanel" method="get">
                        <input type="hidden" name="status" value="#para('status')">
                        <div class="row">
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">报告编号</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" name="report_no" value="#para('report_no')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">注册号</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control " name="registration_number" value="#para('registration_number')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">运营人名称</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" name="name_operator" value="#para('name_operator')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">发生日期</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control datetimepicker" name="date_occurrence" value="#para('date_occurrence')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">至</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control datetimepicker" name="date_occurrence1" value="#para('date_occurrence1')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <label class="col-sm-4 control-label">飞机型号</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" name="model" value="#para('model')">
                                </div>
                            </div>
                            <div class="form-group col-lg-4">
                                <div class="col-sm-12" style="text-align: center">
                                    <button type="submit" class="btn btn-primary ">查询</button>
                                    <a href="javascript:reset();"><button type="button" class="btn btn-default">刷新</button></a>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                    </form>

                    <div class="box-header with-border">
                        <div class="row actionPanel">
                            <div class="col-xs-12">
                                <!--<a href="jpress_addon_securityinformation_srd/edit" class="btn btn-primary ">
                                    <i class="fa fa-fw fa-plus"></i> 新建
                                </a>-->
                                <button type="submit" id="batchDel" class="btn btn-default checkAction"> 批量删除</button>
                            </div>
                        </div>

                    </div>
                    <!-- /.box-header -->
                    <div class="box-body ">

                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <th style="width: 10px">
                                    <input name="dataItem" onchange="checkAll(this)" type="checkbox"/>
                                </th>
                                <th>id</th>
                                <td>报告编号</td>
                                <td>注册号</td>
                                <td>运营人名称</td>
                                <td>现象</td>
                                <td>发生地点</td>
                                <td>发生日期</td>
                                <td>提交日期</td>

                            </tr>
                            #for(entry : page.list)
                            <tr class="jp-actiontr">
                                <td><input class="dataItem" type="checkbox" value="#(entry.id)" />
                                </td>
                                <td>
                                    <strong>
                                        <a href="#(CPATH)/admin/securityinformation/jpress_addon_securityinformation_srd/edit/#(entry.id)"> #(entry.id ??) </a>
                                    </strong>
                                    <div class="jp-actionblock">
                                        <div class="jp-actionitem">
                                            <a href="/admin/securityinformation/jpress_addon_securityinformation_srd/edit/#(entry.id)">查看详情</a> |
                                            <a href="javascript:;" class="red-action"
                                               onclick="doDel('#(entry.id)')">删除</a>
                                        </div>
                                    </div>
                                </td>

                                <td>#(entry.report_no ??)</td>
                                <td>#(entry.registration_number ??)</td>
                                <td>#(entry.name_operator ??)</td>
                                <td>#(entry.PHENOMENON ??)</td>
                                <td>发生地点</td>
                                <td>#date(entry.date_occurrence,'yyyy-MM-dd' ??)</td>
                                <td>#date(entry.date_occurrence,'yyyy-MM-dd' ??)</td>
                            </tr>
                            #end
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <div class="row">
                            <div class="col-sm-12">
                            	 #@_paginate()
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.box -->
            </div>
        </div>

    </section>
</div>
#end
